package com.it.travel.dao;

import com.it.travel.pojo.User;
import org.apache.ibatis.annotations.Param;

public interface UserDao {

    /**
     * 根据用户名查用户
     * @param username
     * @return
     */
    User queryByName(@Param("username")String username);

    /**
     * 添加用户
     * @param user
     * @return
     */
    Integer addUser(User user);

    /**
     * 修改状态
     * @param code
     * @return
     */
    Integer updateCodeStatus(String code);

    /**
     * 账户登录
     * @param username
     * @param password
     * @return
     */
    User queryByNameAndPwd(@Param("username") String username,@Param("password") String password);


}
